import request from '@/utils/request'

//查询护理记录和住院记录（孟迪）
export function listNurserecord2(query) {
  return request({
    url: '/nurse/nurserecord/list/all',
    method: 'get',
    params: query
  })
}





// 查询患者住院护理记录列表
export function listNurserecord(query) {
  return request({
    url: '/nurse/nurserecord/list',
    method: 'get',
    params: query
  })
}

// 查询患者住院护理记录详细
export function getNurserecord(nursingRecordId) {
  return request({
    url: '/nurse/nurserecord/' + nursingRecordId,
    method: 'get'
  })
}

// 新增患者住院护理记录
export function addNurserecord(data) {
  return request({
    url: '/nurse/nurserecord',
    method: 'post',
    data: data
  })
}

// 修改患者住院护理记录
export function updateNurserecord(data) {
  return request({
    url: '/nurse/nurserecord',
    method: 'put',
    data: data
  })
}

// 删除患者住院护理记录
export function delNurserecord(nursingRecordId) {
  return request({
    url: '/nurse/nurserecord/' + nursingRecordId,
    method: 'delete'
  })
}
